package com.rhb.cg.distribute;


import org.springframework.context.support.AbstractApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;


public class MergeContext {
	
	private static MergeContext instance;
	
	private AbstractApplicationContext appContext;
	
	private MergeContext() {
		this.appContext = new ClassPathXmlApplicationContext("com/rhb/cg/distribute/merge-context.xml");
	}
	
	public synchronized static MergeContext getInstance() {
		if (instance == null) {
			instance = new MergeContext();
		}
		return instance;
	}
	
	public AbstractApplicationContext getAppContext() {
		return appContext;
	}	
}
